// function test() {
//   console.log('点击')
//   // alert('点击')
//   // 发送消息到 content script
//   chrome.runtime.sendMessage(chrome.runtime.id, {type: "reply", text: "Hello from devtools panel hcsy!"});
// }
// test()

// setInterval(() => {
//   test()
// }, 1000*5)

// 监听来自 content script 的消息
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
  console.log("监听来自 content script 的消息 Received message: " + message.text);
  document.getElementById('table').appendChild(document.createElement('li')).innerHTML = `<td>${message.text}</td>`
});